import request from '@/utils/request'

// 查询部门金额明细列表
export function listAccounts(query) {
  return request({
    url: '/system/accounts/list',
    method: 'get',
    params: query
  })
}

// 查询部门金额明细详细
export function getAccounts(accountsId) {
  return request({
    url: '/system/accounts/' + accountsId,
    method: 'get'
  })
}

// 新增部门金额明细
export function addAccounts(data) {
  return request({
    url: '/system/accounts',
    method: 'post',
    data: data
  })
}

// 修改部门金额明细
export function updateAccounts(data) {
  return request({
    url: '/system/accounts',
    method: 'put',
    data: data
  })
}

// 删除部门金额明细
export function delAccounts(accountsId) {
  return request({
    url: '/system/accounts/' + accountsId,
    method: 'delete'
  })
}

// 导出部门金额明细
export function exportAccounts(query) {
  return request({
    url: '/system/accounts/export',
    method: 'get',
    params: query
  })
}
